﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="CategoryDetail.aspx.cs" Inherits="CategoryDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div><asp:Label ID="lblCategory" runat="server" Text="Label"></asp:Label>
    </div>
    <asp:DataList ID="lstProduct" runat="server" CellSpacing="10" RepeatColumns="2" ShowFooter="False"
        ShowHeader="False" Width="100%">
        <ItemTemplate>
            <div id="cornersecond">
                <div class="inside">
                    <strong>
                        <%#DataBinder.Eval(Container.DataItem,"ProductName")%>
                        <%#DataBinder.Eval(Container.DataItem,"ID")%>
                    </strong>
                </div>
                <div class="topleft">
                </div>
                <div class="topright">
                </div>
            </div>
            <div id="cornerthird">
                <div class="inside">
                    <table id="spfirst">
                        <tr>
                            <td class="left">
                                <a id='<%# Eval("ID") %>' class="jTip" href='Tooltip/TooltipLapTop.aspx?idProduct=<%# Eval("ID") %>'>
                                    <asp:Image ID="btnImage" runat="server"
                                        ImageUrl=' <%#DataBinder.Eval(Container.DataItem, "Image")%>'
                                        Width="100px" />
                                </a>
                            </td>
                            <td class="right">
                                Bảo hành:
                                12
                                tháng
                                <br />
                                <br />
                                Giá:<span style="color: #ff0000">
                                    <%#DataBinder.Eval(Container.DataItem, "Price", "{0:#,#.##}")%>VNĐ
                                    <br /><br />
                                    <a href="ProductDetail.aspx?idProduct=<%#DataBinder.Eval(Container.DataItem,"ID")%>">Chi tiết....</a>
                                    <hr />
                                </span>
                                <asp:ImageButton ID="btnBuy" CommandName="Buy" runat="server"  ImageUrl="Images/buy_bt.gif" OnClick="ShoppingCart_Add" CommandArgument='<%# Eval("ID") %>' />
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="bottomleft">
                </div>
                <div class="bottomright">
                </div>
            </div>
        </ItemTemplate>
        <ItemStyle Width="50%" />
    </asp:DataList>

</asp:Content>

